package exam_8_22;

import java.util.HashSet;
import java.util.Set;

class MyClass {

    int x;

    MyClass(int i) {

        x = i;

    }

    public static void main(String[] args) {

        MyClass m1 = new MyClass(100);

        MyClass m2 = new MyClass(100);

        if (m1.equals(m2)) {

            System.out.println("Both are equal");

        } else {

            System.out.println("Both are not equal");

        }
        Set s=new HashSet();
        s.add("abc");
        s.add("abc");
        s.add("abc");
        s.add("abcd");
        System.out.println(s.size());

    }

}